package main;

import edu.washington.cs.knowitall.nlp.extraction.ChunkedBinaryExtraction;
public class Example {
    public static void main(String[] args) throws Exception {
        ReVerbExtractor reverb = new ReVerbExtractor();
        String txt = "McGinn is the mayor of Seattle. "
                   + "He lives in Queen Anne.";
        for (ChunkedBinaryExtraction e : reverb.extractFromString(txt)) {
            System.out.println(e.getArgument1());
            System.out.println(e.getRelation());
            System.out.println(e.getArgument2());
        }
    }
}